<template>
  <div>
    <!-- <aside>
      {{ $t('components.tinymceTips') }}
      <a target="_blank" class="link-type" href="https://panjiachen.github.io/vue-element-admin-site/component/rich-editor.html"> {{ $t('components.documentation') }}</a>
    </aside> -->
    <div>
      <tinymce v-model="content" :height="300" />
    </div>
    <div class="editor-content" v-html="content" />
  </div>
</template>

<script>
import Tinymce from '@/components/Tinymce'

export default {
  name: 'editor',
  components: { Tinymce },
  data() {
    return {
      content: ''
    }
  }
}
</script>

<style scoped>
.editor-content{
  margin-top: 20px;
}
</style>

